package com.andy.base.http;

public class AssembleHttpUtil {

    /**
     * 包装成功请求头和内容的结果
     * @param content
     * @return
     */
    public static String success(String content){
        String responseStr = HttpProtocolUtil.getHttpHeader200(content.length())+content;
        return responseStr;
    }


    /**
     * 包装失败请求头和内容的结果
     * @param content
     * @return
     */
    public static String failed(String content){
        String responseStr = HttpProtocolUtil.getHttpHeader404()+content;
        return responseStr;
    }

}
